package com.mscsoft.brainpower.server.dao;

import com.mscsoft.brainpower.server.domain.GameFile;

import org.apache.ibatis.annotations.*;

@Mapper
public interface ImageFileDao {

    @Select("select imgname fileName,img data from image where imgname=#{imgname}")
    GameFile queryImageFileByMusicName(@Param("imgname") String imgname);

    @Insert("INSERT INTO image (imgname,img) VALUES(#{imgname}, #{img})")
    void insertNewImg(@Param("imgname") String imgname,@Param("img") byte[] img);
}
